package org.gpp.proj1.particle;

import org.gpp.proj1.util.test.JMETestCase;

import com.jmex.effects.particles.ParticleGeometry;

/**
 * @author Paolo Victor, paolovictor@gmail.com
 */
public class ParticleCreatorTest extends JMETestCase {

	/*
	 * Test method for 'org.gpp.proj1.particle.ParticleCreator.createParticle(String)'
	 */
	public void testCreateParticle() {
		try {
			ParticleCreator.createParticle( null );
			fail();
		} catch (AssertionError e) {
			// expected error
		}
		
		ParticleGeometry muzzle = ParticleCreator.createParticle( "res/particle/muzzle.jme" );
		
		assertNotNull( muzzle );
	}

}
